package com.laomou.poker.main;

import com.laomou.poker.PokerGame;
import com.laomou.poker.rule.PokerRuleType;
import com.laomou.poker.rule.landlord.LaoMouPlayer;
import com.laomou.poker.rule.landlord.PCPlayer;
import com.laomou.poker.table.ITable;

public class Main {
    private static PCPlayer player1 = new PCPlayer("player1");
    private static PCPlayer player2 = new PCPlayer("player2");
    private static LaoMouPlayer player3 = new LaoMouPlayer();

    public final static void main(String[] args) {
        PokerGame.config(new PokerGame.IConfig() {

            @Override
            public PokerRuleType getPokerRuleType() {
                return PokerRuleType.斗地主;
            }

            @Override
            public void config(ITable table) {
                table.addPlayer(player1);
                table.addPlayer(player2);
                table.addPlayer(player3);
            }
        }).playGame();
    }
}
